<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/memberManagement/member/insert' :'/memberManagement/member/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			
			<c:if test="${requestScope.record !=null}">
																	
					<input type="hidden" name="memberId" value="${requestScope.record.memberId}" />
																																																																																																																																									
			</c:if>
			
				<%-- <p>
					<label>店铺</label> <input name="shopId" class="required" maxlength="50" type="text" value="${requestScope.record.shopId}"  />
				</p> --%>
				<p>
				<label>店铺</label>
				<select>
				<c:forEach items="${requestScope.shoplist }" var="shoplist">
				<option value="${shoplist.shopId }" ${shoplist.shopId == requestScope.record.shopId ? 'selected':'' }>${shoplist.shopName }</option>
				</c:forEach>
				</select>
				</p>
				
				<%-- <p>
					<label>推荐人</label> <input name="refererId" class="required" maxlength="50" type="text" value="${requestScope.record.refererId}"  />
				</p> --%>
				<p>
				<label>推荐人</label>
				<select>
				<c:forEach items="${requestScope.memberlist }" var="memberlist">
				<option value="${memberlist.memberId }" ${memberlist.memberId == requestScope.record.memberId ? 'selected':'' }>${memberlist.memberName}</option>
				</c:forEach>
				</select>
				</p>
				
				<p>
					<label>会员姓名</label> <input name="memberName" class="required" maxlength="50" type="text" value="${requestScope.record.memberName}"  />
				</p>
				
				<p>
					<label>会员头像</label> <input name="memberPortrait" class="required" maxlength="255" type="text" value="${requestScope.record.memberPortrait}"  />
				</p>
				
				<p>
				<label>性别</label>
				<input type="radio" name="memberSex" value="1" ${requestScope.record.memberSex == 1 ? 'checked="checked"':''}>男
				<input type="radio" name="memberSex" value="0" ${requestScope.record.memberSex == 0 ? 'checked="checked"':''}>女
				</p>
				
				<p>
					<label>会员电话</label> <input name="memberPhone" class="required digits" maxlength="11" type="text" value="${requestScope.record.memberPhone}"  />
				</p>
				
				<p>
				<label>会员状态</label>
				<input type="radio" name="memberState" calss="required" value="0" ${requestScope.record.memberState == 0 ? "checked":""}>启用
				<input type="radio" name="memberState" class="required" value="1" ${requestScope.record.memberState == 1 ? "checked":""}>停用
				</p>
	
						
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
